package worldofbearcraft;

public class Dice 
{
	int _diceSides;
	int _diceRollCount;
	int _diceSum;
	
public Dice()
{
	_diceSides = 20;
	_diceRollCount = 1;
}
public Dice(int sides,int rolls )
{
	_diceSides = sides;
	_diceRollCount = rolls;
}
public int Roll()
{
	java.util.Random r = new java.util.Random();
	_diceSum = (r.nextInt(_diceSides) + 1) * _diceRollCount;
	return _diceSum;
}
public static int statRoll()
{
	java.util.Random r = new java.util.Random();
	return (int) ((int) ((r.nextInt(6) + 1) + (r.nextInt(6) + 1) + (r.nextInt(6) + 1) + (r.nextInt(6) + 1)) * .75);
	
}
public static int dmgRoll(int d, int t)
{
	Dice q = new Dice(d,t);
	return q.Roll();
}
public static int atkRoll()
{
	return new Dice().Roll();
	
}
public static int initRoll()
{
	return new Dice().Roll();
}
}